package com.colabo.j2ee.web.core.pkgenerator;

import com.colabo.j2ee.web.core.exception.CommonException;
import com.colabo.j2ee.web.core.exception.ServiceException;

public interface IPKGenerator {

	public final static String BEAN_ID = "PKGenerator";
	
	/**
	 * Retrieve a 20-digit long value as pk
	 * @return long key
	 * @throws CommonException
	 */
	public Long getLongKey() throws ServiceException;

	/**
	 * Retrieve a 32-digit String UUID
	 * 
	 * @return uuid
	 * @throws 
	 */
	public String getUUIDKey() throws ServiceException;
	
	/**
	 * Retrieve a 32-digit String UUID
	 * 
	 * @param obj - seed for generating uuid
	 * @return uuid
	 */
	public String getUUIDKey(Object obj) throws ServiceException;
}
